<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/11 0011
 * Time: 下午 20:02
 */
namespace Home\Controller;
use Core\Controller;
use Core\DB;
use Core\Cache;
class TestController extends Controller{
    public function test(){
        $data = [1,2,3];
        $data = json_encode($data);
        $a =  Cache::set('2',$data,5);
        print_r($a);
    }
    public function get(){
      $a =  Cache::get('2');
        print_r($a);
    }

    public function db(){
        $where['id#not in|id#in1'] = 1;
        $rs = DB::table('user')->where($where)->select();
        print_r($rs);
    }

}
